import request from '@/utils/request'

//排班-相关接口
const API = "/admin/hosp/schedule";

export default {
  //查询排班日期
  getDateList(page, size, hoscode, depcode) {
    let seachObj = {hoscode, depcode};
    return request({
      url: `${API}/getDateList/${page}/${size}`,
      method: 'get',
      params: seachObj
    })
  },
  //查询排班医生
  getDocList(hoscode, depcode, workDate) {
    return request({
      url: `${API}/getDocList/${hoscode}/${depcode}/${workDate}`,
      method: 'get'
    })
  },
}